//
// Created by xwt.
//

#ifndef AB_COMMON_HPP
#define AB_COMMON_HPP
//unix system
#include <unistd.h>
#include <syscall.h>
#include <pthread.h>
#include <fcntl.h>


namespace anbantech {
    //globals

#if __GNUC__ < 6
    #ifndef likely
    #define likely(_x) (_x)
  #endif
  #ifndef unlikely
    #define unlikely(_x) (_x)
  #endif
#else
#ifndef likely
#define likely(_x) __builtin_expect(!!(_x), 1)
#endif
#ifndef unlikely
#define unlikely(_x) __builtin_expect(!!(_x), 0)
#endif
#endif





}//namespace anbantech


#endif //AB_UTILS_AB_COMMON_H
